package com.mbbb.easyExcel;

import com.alibaba.excel.annotation.ExcelProperty;

public class Student {
    //设置表头名称
    @ExcelProperty(value = "学生编号",index = 0)
    private int stuId;

    //设置表头名称
    @ExcelProperty(value = "学生姓名",index = 1)
    private String stuName;

    public Student() {
    }

    public int getStuId() {
        return this.stuId;
    }

    public String getStuName() {
        return this.stuName;
    }

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof Student)) return false;
        final Student other = (Student) o;
        if (!other.canEqual((Object) this)) return false;
        if (this.getStuId() != other.getStuId()) return false;
        final Object this$stuName = this.getStuName();
        final Object other$stuName = other.getStuName();
        if (this$stuName == null ? other$stuName != null : !this$stuName.equals(other$stuName)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof Student;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getStuId();
        final Object $stuName = this.getStuName();
        result = result * PRIME + ($stuName == null ? 43 : $stuName.hashCode());
        return result;
    }

    public String toString() {
        return "Student(stuId=" + this.getStuId() + ", stuName=" + this.getStuName() + ")";
    }
}
